package com.accounting.client.frontend.product.tree;

import com.accounting.client.remote.obj.ProductCatalog;
import com.accounting.client.resource.BoxResources;

import corelib.client.ui.widget.tree.SimpleTreeNode;

public class ProductCatalogTreeNode extends SimpleTreeNode {
	
	private ProductCatalog catalog;
	
	public ProductCatalogTreeNode(ProductCatalog info){
		super(info.getCName(),BoxResources.INSTANCE.cube16());
		this.catalog = info;
	}

	@Override
	public boolean isLeaf() {
		return this.catalog.isIsLeaf();
	}

	public ProductCatalog getProductCatalog() {
		return this.catalog;
	}
	
}